import request from '@/utils/request'

export function meterList(data) {
  return request({
    url: '/meterlist',
    method: 'post',
    params: data
  })
}

export function meterDetail(data) {
  return request({
    url: '/meterdetail',
    method: 'post',
    params: data
  })
}

export function createMeter(data) {
  return request({
    url: '/meteradd',
    method: 'post',
    data
  })
}

export function updateMeter(data) {
  return request({
    url: '/meterupdate',
    method: 'post',
    data
  })
}
